<?php
class BulkEmail extends NewslettersAppModel {

	var $name = 'BulkEmail';
	
	function afterSave($created)
	{
		if($created)
		{
			cri('Multitask.QueuedTask')->queue(array('plugin'=>'newsletters', 'controller'=>'bulk_emails', 'action'=>'process', 'params'=>array('id'=>$this->id), 'info'=>'Bulk Emails'), 'high');
		}
	}

}
 ?>